package business.report.impl;

import business.report.PoliceSecurityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.PoliceSecurity;
import report.domain.PoliceSecurityCriteria;
import report.mapper.PoliceSecurityMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/13.
 */
@Service(value ="policeSecurityService")
public class PoliceSecurityServiceImpl implements PoliceSecurityService{

    @Autowired
    PoliceSecurityMapper policeSecurityMapper;

    @Override
    public List<PoliceSecurity> selectAllPoliceSecurity() {
        PoliceSecurityCriteria criteria = new PoliceSecurityCriteria();
        criteria.createCriteria().getAllCriteria();
        return policeSecurityMapper.selectByExample(criteria);
    }
}
